﻿using GPS.DataAccessLayer;
using PagedList;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace GPS.ENTITYS
{
    public class ViewModelDPT
    {
        public int? Page { get; set; }

        [Display(Name = "Biển số")]
        public string pPT_BIENSO { get; set; }

        [Display(Name = "Số đăng ký")]
        public string pPT_SODK { get; set; }

        [Display(Name = "")]
        public string pPT_DVGTVT_MA { get; set; }

        [Display(Name = "")]
        public Nullable<decimal> pPT_NAMSX { get; set; }
        public string pPT_ACTIVE { get; set; }
        public IPagedList<DPT> SearchResults { get; set; }
        public List<SDONVIGTVT> lstDonViGTVT { get; set; }
        public string SearchButton { get; set; }
    }

    public class ViewModel_DLSPT : ViewModelDPT
    {
        public int? Page { get; set; }
        public string pPT_BIENSO { get; set; }
        public string pPT_SODK { get; set; }
        public string pPT_DVGTVT_MA { get; set; }
        public string pPT_ACTIVE { get; set; }
        public IPagedList<CrudModel_DLSPT> SearchResults { get; set; }
    }

    public class CrudModel_DLSPT
    {
        [DisplayFormat(DataFormatString = "{0:0}", ApplyFormatInEditMode = true)]
        public decimal? STT { get; set; }
        public string LSPT_BIENSO { get; set; }
        public string LSPT_DVGTVT_MA_CU { get; set; }
        public string LSPT_DVGTVT_MA_MOI { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public Nullable<System.DateTime> LSPT_NGAYGCNKD_CU { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public Nullable<System.DateTime> LSPT_NGAYHHGCNKD_CU { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public Nullable<System.DateTime> LSPT_NGAYGCNKD_MOI { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public Nullable<System.DateTime> LSPT_NGAYHHGCNKD_MOI { get; set; }
        public string LSPT_SOGPXTL_CU { get; set; }
        public string LSPT_CQCAPGPXTL_CU { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public Nullable<System.DateTime> LSPT_NGAYGPXTL_CU { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public Nullable<System.DateTime> LSPT_NGAYHHGPXTL_CU { get; set; }
        public string LSPT_SOGPXTL_MOI { get; set; }
        public string LSPT_CQCAPGPXTL_MOI { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public Nullable<System.DateTime> LSPT_NGAYGPXTL_MOI { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public Nullable<System.DateTime> LSPT_NGAYHHGPXTL_MOI { get; set; }
        public string LSPT_MOTA { get; set; }
        public string LSPT_STATUS { get; set; }
        public string DVGTVT_TEN { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public Nullable<System.DateTime> LSPT_NGAYNHAP { get; set; }
        public string LSPT_NGUOINHAP { get; set; }
        [DisplayFormat(DataFormatString = "{0:0}", ApplyFormatInEditMode = true)]
        public decimal? ID_PT { get; set; }
        public string PT_BIENSO { get; set; }
        public string PT_DVGTVT_MA { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public DateTime? PT_NGAYGCNKD { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public DateTime? PT_NGAYHHGCNKD { get; set; }
        public string PT_SOGPXTL { get; set; }
        public string PT_CQCAPGPXTL { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public DateTime? PT_NGAYGPXTL { get; set; }
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}", ApplyFormatInEditMode = true)]
        public DateTime? PT_NGAYHHGPXTL { get; set; }
        public string PT_ACTIVE { get; set; }
    }
}
